import instance from "../api/request";

export function getNav(){
    return instance.get("nav");
}

export function getList(){
    return instance.get("list");
}

export function getCart(){
    return instance.get("cart");
}

export function addCart(obj){
    return instance.post("cart",obj);
}

export function emitCart(obj){
    return instance.patch(`cart/${obj.id}`,obj)
}